<html>
<head>
	<title>请假单管理</title>
	<meta name="decorator" content="default"/>
	<meta charset="utf-8">	
	  <script src="../../../js/headjsp.js"></script>
</head>
<body >
		<form id="inputForm" modelAttribute="formLeavem" action="http://localhost:8000/admin/mvvmoa/formLeavem/savejson" method="post" class="form-horizontal">
		<input id="id" name="id" type="hidden" v-model="formData.id">
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>员工：</label></td>
					<td class="width-35">
					<input id="userId" name="user.id" class="form-control required" type="hidden" v-model="formData.user.id" >
					<div class="input-group">
						<input id="userName" name="user.name" readonly="readonly" type="text" v-model="formData.user.name" data-msg-required="" class="form-control required error" style="" >
				       		 <span class="input-group-btn">
					       		 <button type="button" id="userButton" class="btn   btn-white  "><i class="fa fa-search"></i>
					             </button> 
				       		 </span>
				       		
				    </div>
					<label id="userName-error" class="error" for="userName" style="">这是必填字段</label>
					</td>
					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>归属部门：</label></td>
<td class="width-35">
	<input id="officeId" name="office.id" class="form-control required" type="hidden" v-model="formData.office.id" >
	<div class="input-group">
		<input id="officeName" name="office.name" readonly="readonly" type="text" v-model="formData.office.name" data-msg-required="" class="form-control required error" style="" >
       		 <span class="input-group-btn">
	       		 <button type="button" id="officeButton" class="btn   btn-white  "><i class="fa fa-search"></i>
	             </button> 
       		 </span>
       		
    </div>
	 <label id="officeName-error" class="error" for="officeName" style="">这是必填字段</label>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">归属区域：</label></td>
					<td class="width-35">
	<input id="areaId" name="area.id" class="form-control " type="hidden" v-model="formData.area.id">
	<div class="input-group">
		<input id="areaName" name="area.name" readonly="readonly" type="text" v-model="formData.area.name" data-msg-required="" class="form-control " style="">
       		 <span class="input-group-btn">
	       		 <button type="button" id="areaButton" class="btn   btn-white  "><i class="fa fa-search"></i>
	             </button> 
       		 </span>
       		
    </div>
	 <label id="areaName-error" class="error" for="areaName" style="display: none;"></label>
					</td>
					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>请假开始日期：</label></td>
					<td class="width-35">
						<input id="beginDate" name="beginDate" type="text" maxlength="20" class="laydate-icon form-control layer-date required" v-model="formData.beginDate" aria-required="true">
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>请假结束日期：</label></td>
					<td class="width-35">
						<input id="endDate" name="endDate" type="text" maxlength="20" class="laydate-icon form-control layer-date required" v-model="formData.endDate" aria-required="true">
					</td>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-35">
						<input id="remarks" name="remarks" class="form-control" type="text" v-model="formData.remarks" maxlength="255">
					</td>
				</tr>
		 	</tbody>
		</table>
		<div class="layui-layer-btn"><a class="layui-layer-btn0" @click="save()">保存</a><a class="layui-layer-btn1">关闭</a></div>
	</form>
	<script src="../../../js/SpringUI.js"></script>
</body>
</html>